Email Object Properties
- Account Information Properties
.CLIENT_HOSTNAME .CLIENT_IDENTITY .CLIENT_PASSWORD .CLIENT_USERNAME .ERROR .MAIL_HOSTNAME .PORT - Receiving Email Properties
.RECEIVE_ATTACHMENTS_FIELD .RECEIVE_AUTODELETE .RECEIVE_BCC_ADDRESS_FIELD .RECEIVE_CC_ADDRESS_FIELD .RECEIVE_DATE_FIELD .RECEIVE_FROM_ADDRESS_FIELD .RECEIVE_LIMIT .RECEIVE_MESSAGE_BODY_FIELD .RECEIVE_REPLY_FIELD .RECEIVE_SORT_DATE_FIELD .RECEIVE_SUBJECT_FIELD .RECEIVE_TO_FIELD - Sending Email Properties
.SEND_ATTACHMENTS .SEND_BCC .SEND_CC .SEND_CONTENTS .SEND_SUBJECT .SEND_TO .TEXT_TYPE .XMAILER
Description
Prefix the following properties with the <EMAIL> pointer. Use EMAIL.OPEN() to get an email pointer.
The email object can be used to create and send an email using Alpha Anywhere's built-in email client. The email client is only available in Desktop Applications. An email pointer is required to reference the properties. An email pointer can be created using EMAIL.OPEN(). For example:
dim emailPointer as p emailPointer = email.open()
Account Information Properties
<EMAIL>.CLIENT_HOSTNAME
The mail server used to send mail (SMTP)
mail.isp.com
<EMAIL>.CLIENT_IDENTITY
Your email address
[email protected]
<EMAIL>.CLIENT_PASSWORD
Your email account password
mypassword
<EMAIL>.CLIENT_USERNAME
Your username
selwyn
<EMAIL>.ERROR
Contains any error messages reported by the mail server.
<EMAIL>.MAIL_HOSTNAME
The mail server used to receive mail. (POP)
mail.isp.com
<EMAIL>.PORT
The port to use. Generally this can be 0
0
Receiving Email Properties
<EMAIL>.RECEIVE_ATTACHMENTS_FIELD
The field where attachments are stored. This field will contain the attachment filenames. The actual attachments are in a folder called "Attachments" relative to the table into which email is read.
Attachments
<EMAIL>.RECEIVE_AUTODELETE
Controls whether email is deleted from the server when it is read.
.f.
<EMAIL>.RECEIVE_BCC_ADDRESS_FIELD
The field where the Bcc addresses are stored.
Bcc
<EMAIL>.RECEIVE_CC_ADDRESS_FIELD
The field where the CC addresses are stored.
CC
<EMAIL>.RECEIVE_DATE_FIELD
The field where the email date is stored.
Sent_DATE
<EMAIL>.RECEIVE_FROM_ADDRESS_FIELD
The field where the address of the sender is stored.
From
<EMAIL>.RECEIVE_LIMIT
The number of messages Alpha Anywhere should read from the server when the .RECEIVE() method is executed. -1 indicates all messages.
-1
<EMAIL>.RECEIVE_MESSAGE_BODY_FIELD
The field where the message body is stored.
Body
<EMAIL>.RECEIVE_REPLY_FIELD
The field where the email reply-to address is stored.
Reply
<EMAIL>.RECEIVE_SORT_DATE_FIELD
Sort_Date
<EMAIL>.RECEIVE_SUBJECT_FIELD
The field where the email subject is stored.
Subject
<EMAIL>.RECEIVE_TO_FIELD
The field where the To addresses are stored.
To
Sending Email Properties
<EMAIL>.SEND_ATTACHMENTS
The filename of any attachment to be sent with the message.
<EMAIL>.SEND_BCC
A comma delimited list of BCC addresses to which email is to be sent.
<EMAIL>.SEND_CC
A comma delimited list of CC addresses to which email is to be sent.
<EMAIL>.SEND_CONTENTS
The body of the email message.
<EMAIL>.SEND_SUBJECT
The subject of the email message.
<EMAIL>.SEND_TO
A comma delimited list of email addresses to which email is to be sent.
<EMAIL>.TEXT_TYPE
Set to "HTML" for HTML email, or "" (i.e. blank) for regular text email.
<EMAIL>.XMAILER
The Xmailer field identifies the mailer. It is contained in the message header.
Limitations
Desktop Applications Only